//
//  FCMileageAndOilWearView.h
//  OilWear
//
//  Created by jjkj on 17/7/10.
//  Copyright © 2017年 jjkj. All rights reserved.
//
typedef void(^ExchangeVehicleBlock)(NSInteger index);
typedef void(^WorkAreaDetailBlock)();

#import <UIKit/UIKit.h>
@class HomeCarModel;

@interface FCMileageAndOilWearView : UIView

@property (weak, nonatomic) IBOutlet UIButton *onlineVehicleAmount;//在线车辆

@property (weak, nonatomic) IBOutlet UIButton *offLineAmount;//离线车辆

@property (weak, nonatomic) IBOutlet UIButton *mileage;//里程数


@property (weak, nonatomic) IBOutlet UIButton *oilWear;//油耗

@property (nonatomic,copy) ExchangeVehicleBlock exchangeVehicleBlock;//切换车辆

@property (nonatomic,copy) WorkAreaDetailBlock workAreaDetailBlock;//进入工作区详情页面
@property (weak, nonatomic) IBOutlet UIView *view;

- (void)setObjectWith:(HomeCarModel *)homeCarModel;

@end
